package com.jml.适配者模式.类适配器;

//适配器类
public class VoltageAdapter extends Voltage220V implements IVoltage5V {

    @Override
    public int output5V() {
        int srcV = output220V();
        int dstV = srcV / 44; //转成 5v
        return dstV;
    }

}